let toString = Object.prototype.toString

export function isArray(target) {
    return toString.call(target) === "[object Array]"
}

export function isObject(target) {
    return toString.call(target) === "[object Object]"
}

export function isUnaryTag(tagname) {
    return ["input"].includes(tagname)
}

export function isReverseTag(tagname) {
    return ["p", "h3", "span", "div", "template", "input", "select", "textarea", "button", "option"].includes(tagname)
}